package
{
	import flash.external.ExternalInterface;
	
	public class DBEngine
	{
		public static function ExecuteQuery(strSql: String):Number{
			return ExternalInterface.call('ExecuteQuery', strSql);	
		}
		
		public static function GetSValue(idx: Number):String{
			return Base64.decode(ExternalInterface.call('GetFieldValue', idx));	
		}	
		
		public static function GetNValue(idx: Number):Number{
			return Number(Base64.decode(ExternalInterface.call('GetFieldValue', idx)));	
		}
		
		public static function Next():void{
			ExternalInterface.call('MoveNext');	
		}	
		
		public static function IsEof():Boolean{
			return ExternalInterface.call('IsEof');	
		}		
	}
}